﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReporteSolicitudes.aspx.cs" Inherits="CMD_WEB.Reportes.ReporteSolicitudes" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style7
        {
            width: 200px;
        }
        .style8
        {
            width: 130px;
        }
        .style9
        {
            width: 45px;
        }
    </style>
    <link href="../Styles/reportes.css" rel="stylesheet" type="text/css" />

</head>

<body>
    <form id="form1" runat="server">
      <asp:ScriptManager ID="AJAX" runat="server" EnablePartialRendering="True">
                </asp:ScriptManager>

    <asp:UpdatePanel ID="pMenu" runat="server">
    <ContentTemplate>
        <table style="width:975px;">
            <tr>
                <td class="style8">
                    <asp:Label ID="Label2" runat="server" Text=" Del :" />
                </td>
                <td class="style7">
                    <ew:CalendarPopup ID="txtFechaIni" runat="server" ClearDateText="Borrar Fecha" 
                        ControlDisplay="TextBoxImage" Culture="Spanish (Mexico)" 
                        DayNameFormat="FirstTwoLetters" GoToTodayText="Hoy:" 
                        ImageUrl="../Images/Calendario.gif" MonthYearApplyText="Aceptar" 
                        MonthYearCancelText="Cancelar" Nullable="true" NullableLabelText=" " 
                        PopupLocation="Right" ShowClearDate="true" TabIndex="31" Text="Ingresar Fecha" 
                        Width="68px">
                        <TextBoxLabelStyle CssClass="textbox" />
                        <WeekdayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                            Font-Size="XX-Small" ForeColor="Black" />
                        <MonthHeaderStyle BackColor="LightBlue" 
                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                            ForeColor="Black" />
                        <OffMonthStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                            Font-Size="XX-Small" ForeColor="White" />
                        <GoToTodayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                            Font-Size="XX-Small" ForeColor="Black" />
                        <TodayDayStyle BackColor="LightSteelBlue" 
                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                            ForeColor="Black" />
                        <DayHeaderStyle BackColor="SteelBlue" 
                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                            ForeColor="Black" />
                        <WeekendStyle BackColor="LightGray" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                            Font-Size="XX-Small" ForeColor="Black" />
                        <SelectedDateStyle BackColor="DarkGray" 
                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                            ForeColor="Black" />
                        <ClearDateStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                            Font-Size="XX-Small" ForeColor="Black" />
                    </ew:CalendarPopup>
                </td>
                <td class="style9">
                    <asp:Label ID="Label1" runat="server" Text=" al :" />
                </td>
                <td class="style7">
                    <ew:CalendarPopup ID="txtFechaFin" runat="server" ClearDateText="Borrar Fecha" 
                        ControlDisplay="TextBoxImage" Culture="Spanish (Mexico)" 
                        DayNameFormat="FirstTwoLetters" GoToTodayText="Hoy:" 
                        ImageUrl="../Images/Calendario.gif" MonthYearApplyText="Aceptar" 
                        MonthYearCancelText="Cancelar" Nullable="true" NullableLabelText=" " 
                        PopupLocation="Right" ShowClearDate="true" TabIndex="31" Text="Ingresar Fecha" 
                        Width="68px">
                        <TextBoxLabelStyle CssClass="textbox" />
                        <WeekdayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                            Font-Size="XX-Small" ForeColor="Black" />
                        <MonthHeaderStyle BackColor="LightBlue" 
                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                            ForeColor="Black" />
                        <OffMonthStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                            Font-Size="XX-Small" ForeColor="White" />
                        <GoToTodayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                            Font-Size="XX-Small" ForeColor="Black" />
                        <TodayDayStyle BackColor="LightSteelBlue" 
                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                            ForeColor="Black" />
                        <DayHeaderStyle BackColor="SteelBlue" 
                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                            ForeColor="Black" />
                        <WeekendStyle BackColor="LightGray" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                            Font-Size="XX-Small" ForeColor="Black" />
                        <SelectedDateStyle BackColor="DarkGray" 
                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                            ForeColor="Black" />
                        <ClearDateStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                            Font-Size="XX-Small" ForeColor="Black" />
                    </ew:CalendarPopup>
                </td>
            </tr>
            <tr>
                <td class="style8">
                    <asp:Label ID="Label3" runat="server" Text="Nombre del Cliente:" />
                </td>
                <td class="style7">
                    <asp:TextBox ID="txtNombreCliente" runat="server" Width="211px"></asp:TextBox>
                </td>
                <td class="style9">
                    &nbsp;</td>
                <td class="style7">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style8">
                    <asp:Button ID="btnConsultar" runat="server" onclick="btnConsultar_Click"
                        Text="Consultar" />
                </td>
                <td class="style7" >
                </td>
                <td class="style9">
                    &nbsp;</td>
                <td class="style7">
                </td>
            </tr>
        </table>
        <br />
    </ContentTemplate>
    </asp:UpdatePanel>
   <asp:UpdatePanel ID="pReporte" runat="server">
   <ContentTemplate>
        <div style="width:100%; height:100%">
    <rsweb:ReportViewer ID="r2"  runat="server"  Width="1024px" Height="600px">
         <LocalReport ReportPath="Reportes\rSolicitudes.rdlc">
                                    <DataSources>
                                        <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="DataSet1" />
                                    </DataSources>
                                </LocalReport>
    </rsweb:ReportViewer>
         
             <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
                                SelectMethod="GetDataReport" TypeName="CMD.BAL.SOL.Reportes">
                                 <SelectParameters>
                                    <asp:ControlParameter ControlID="HiddenFechaIni" Name="FechaIni" PropertyName="Value"
                                                Type="String" />
                                    <asp:ControlParameter ControlID="HiddenFechaFin" Name="FechaFin" PropertyName="Value"
                                                Type="String" />
                                    <asp:ControlParameter ControlID="HiddenNombreCliente" Name="NombreCliente" PropertyName="Value"
                                                Type="String" />
                                  </SelectParameters>
            </asp:ObjectDataSource>
                                
                            

                            <asp:HiddenField ID="HiddenFechaIni"  runat="server" />
                            <asp:HiddenField ID="HiddenFechaFin"  runat="server" />
                            <asp:HiddenField ID="HiddenNombreCliente" runat="server" />

    </div>I
    </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
